package com.bulk.list;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Objects;

/**
 * @author 散装java
 * @date 2022-09-19
 */
@Data
@AllArgsConstructor
public class StudentDemo {
    private Integer id;
    private String name;
    private Integer age;




    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        StudentDemo that = (StudentDemo) o;
        return Objects.equals(name, that.name) && Objects.equals(age, that.age);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, age);
    }
}
